home *** CD-ROM | disk | FTP | other *** search
/ AI Game Programming Wisdom / AIGameProgrammingWisdom.iso / SourceCode / 06 General Architectures / 05 Rabin / main.cpp next >
Encoding:
C/C++ Source or Header  |  2001-12-10  |  792 b   |  35 lines

  1. /* Copyright (C) Steve Rabin, 2001. 
  2.  * All rights reserved worldwide.
  3.  *
  4.  * This software is provided "as is" without express or implied
  5.  * warranties. You may freely copy and compile this source into
  6.  * applications you distribute provided that the copyright text
  7.  * below is included in the resulting source code, for example:
  8.  * "Portions Copyright (C) Steve Rabin, 2001"
  9.  */
  10.  
  11. #include "stdafx.h"
  12. #include "robot.h"
  13.  
  14.  
  15. int APIENTRY WinMain(HINSTANCE hInstance,
  16.                      HINSTANCE hPrevInstance,
  17.                      LPSTR     lpCmdLine,
  18.                      int       nCmdShow)
  19. {
  20.  
  21.     //Create robot
  22.     Robot robot;
  23.     robot.Initialize();    //this can't be wrapped into the constructor
  24.  
  25.  
  26.     // Game Loop
  27.     while(1)
  28.     {
  29.         robot.Update();
  30.     }
  31.  
  32.     return(0);
  33. }
  34.  
  35.